home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000366_amos-request@svcs1.digex.net_Tue Sep 30 01:54:23 1997.msg < prev    next >
Text File  |  1997-10-01  |  3KB  |  70 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id BAA09494
  3.     for <mcox@access.digex.net>; Tue, 30 Sep 1997 01:54:22 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id XAA25326
  6.     for amos-out; Mon, 29 Sep 1997 23:43:00 -0400 (EDT)
  7. Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id XAA25323
  9.     for <amos-list@svcs1.digex.net>; Mon, 29 Sep 1997 23:42:59 -0400 (EDT)
  10. Received: from m6.sprynet.com (m6.sprynet.com [165.121.2.89])
  11.     by mail4.access.digex.net (8.8.5/8.8.5) with SMTP id XAA03628
  12.     for <amos-list@access.digex.net>; Mon, 29 Sep 1997 23:42:58 -0400 (EDT)
  13. Received: from sprynet.com (ragriffi@hd54-217.hil.compuserve.com [199.174.234.217]) by m6.sprynet.com (8.6.12/8.6.12) with SMTP id UAA24414 for <amos-list@access.digex.net>; Mon, 29 Sep 1997 20:42:53 -0700
  14. From: Richard Griffith <ragriffi@sprynet.com>
  15. Reply-To: Richard Griffith <ragriffi@sprynet.com>
  16. To: AMOS mailing list <amos-list@access.digex.net>
  17. Date: Mon, 29 Sep 1997 23:36:21 +0500
  18. Message-ID: <yam7211.1065.118772744@m6.sprynet.com>
  19. In-Reply-To: <yam7211.1850.1741671176@mail.tlnet.de>
  20. X-Mailer: YAM 1.3.4 [040] - Amiga Mailer by Marcel Beck
  21. Organization: Lacking; Does not play well with others.
  22. Subject: Re: Hello People - Cars and Colours
  23. MIME-Version: 1.0
  24. Content-Type: text/plain
  25. Status: O
  26. X-Status: 
  27.  
  28. On 29-Sep-97, [r]FoX wrote:
  29. >Hi all,
  30.  
  31. >i try to make a little Game with 2 little cars (32x32,16c) to run on
  32. >an 800x600,32,Lowres Screen.
  33. >First i rendered the Bobs with a Retracer in 16 Images for a full rotation.
  34. >I put them with the ObjectEd to a Bank.
  35. >I converted them to 16 colours (cause Bob 1 use 1-8 and Bob 2 use 9-16 )
  36. >Now i have my Bob Palette with 16 colours, so evry Bob can use 8 of them.
  37. >And thats my Problem....i cannot handle that.
  38. >I try to use the mask for Bob 1+2 with digits (%11111111, %1111111100000000)
  39.  
  40. The the pick-plane mask uses one bit for each bit plane,
  41. not for each pallet color. That is to use the bottom three
  42. planes (for 8 colors) would be %111 not %11111111. The first
  43. value you mention would be for a 256 color screen. The second
  44. is for over 64,000 colors. (I wish!!)
  45.  
  46. Also, if the car bobs are 16 color, and only use 8 each,
  47. rendering them has already created data for 4 bit planes.
  48. Depending on the color assignments, there may or may not be
  49. any unused planes in the images. The pick planes for the 
  50. blitter will only determine if they go to the bottom 4 (lowest
  51. 16 colors), top 4 (every other color) planes, or some other
  52. combination (like top 2 and bottom 2 for example). One bit
  53. from each plane combines to form the color index for that
  54. screen pixel. A 32 color screen has 5 planes.
  55.  
  56. One easy way to solve this is to render the cars to the full
  57. screen depth, so that each will pick up its appropriate colors.
  58. Once you get things looking right, then start converting them
  59. to more efficient forms by reducing the bit planes on the cars.
  60. You will need to arrange the 32 color pallette to have the
  61. right colors in the right places. For example, if you decided
  62. that bob2 would get its 8 colors (3 bit planes) from planes
  63. 1, 3 and 5 (%10101) it would use color indexes 0,1,4,5,16,17,
  64. 20, and 21, assuming that the unused planes were set to zero
  65. in the blit.
  66.  
  67. Good Luck, and here's to fast cars!
  68. -Richard
  69.  
  70.